package com.sultan.guante.userSystem.web;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.context.FacesContext;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;


import com.sultan.guante.userSystem.domain.Users;
import com.sultan.guante.userSystem.service.UserService;

@ManagedBean
@SessionScoped
@Component
public class UserListBean {
	
	@Autowired
	private UserService userService;
	
	public List<Users> users = new ArrayList<Users>();
	
	
	
	public List<Users> getUsers() {
		return userService.getAll();
	}
	

	
}
